<?php
/**
 * This file is part of Notadd.
 *
 * @author        Hollydan <2642956839@qq.com>
 * @copyright (c) 2017, notadd.com
 * @datetime      17-11-20 下午5:17
 */

namespace Notadd\Seckill\Models;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    protected $table = 'ext_seckill_products';
    protected $fillable = [
        'name',
        'pic',
        'price_yuan',
        'price_active',
        'recommend',
        'mask',
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     */
    public function seckills()
    {
        return $this->belongsToMany(Seckill::class);
    }
}